package com.uidp.uitils;

/**
 * Валидации
 * 
 * @author Р. Тасева 31.08.2012
 * 
 */
public class Utils {

	/**
	 * @param s
	 * @return true/false
	 */
	public static boolean isValidEIK(String s) {
		return s.matches("[0-9]{9,13}");
	}

	/**
	 * @param s
	 * @return true/false
	 */
	public static boolean isValidNumber(String s) {
		return s.matches("[0-9]{1,16}");
	}

	/**
	 * @param s
	 * @return true/false
	 */
	public static boolean isValidPhoneNumber(String s) {
		return s.matches("359[0-9]{1,13}");
	}

	/**
	 * @param s
	 * @return true/false
	 */
	public static boolean isValidSimCardID(String s) {
		return s.matches("[0-9]{1,32}");
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println(isValidEIK("18888888888"));
	}
}
